<?php

namespace app\validate;

use app\base\BaseValidate;

/**
 * 验证器-GoodsValidate
 * Class GoodsValidate
 * @package app\validate
 */
class OrderValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require|number',
        'order_logistics_name|物流名称' => 'require',
        'order_logistics_code|物流编码' => 'require',
        'order_logistics_number|物流单号' => 'require',
    ];

    //验证场景-物流验证
    public function sceneCheckLogistics()
    {
        return $this->only(['order_item_info', 'logistics_code', 'logistics_number']);
    }
}